package Module::Install::Grantsfire;
use base 'Module::Install::Base';

sub deploy_grantsfire { shift->postamble(<<'__EOF__');
SSH=$(shell which ssh)
RSYNC=$(shell which rsync)
RSYNC_ARGS=-avz --delete --exclude '.svn' --exclude blib --exclude Makefile --exclude inc --exclude conf/grantsfire_local.yml
REMOTE_USER=$(REMOTE_USER)
REMOTE_HOST=$(REMOTE_HOST)

PRODUCTION=gf
STAGING=gf-staging
STAGING_CONFIG=conf/grantsfire_local.yml-stage
LOCAL_CONFIG=conf/grantsfire_local.yml
DEV_CONFIG=conf/grantsfire_local.yml

deploy-staging:
	$(RSYNC) $(RSYNC_ARGS) ./ $(REMOTE_USER)@$(REMOTE_HOST):$(STAGING)/
__EOF__

# $(SSH) $(REMOTE_USER)@$(REMOTE_HOST) cp $(PRODUCTION)/$(LOCAL_CONFIG) $(STAGING)/$(LOCAL_CONFIG)

print "*** Grantsfire Deployment Instructions Complete\n";
}
1;
